<?php

/**
 * @author PeoneEr
 * @method sql()
 */
require_once "core/db.php";

class Mpremium1 extends DB {

    private $_query;

    public function listPremiumAccounts() {
        /**
         *  список премиум аккаунтов
         */
        DB::getInstance()->openConnectionToLS();
        $this->_query = "SELECT `id`, `name`, `last_ip`, `membership`,`expire` FROM `account_data` WHERE `membership` = '1' OR `membership` = '2' ORDER BY `expire` DESC ";
        return DB::getInstance()->sql($this->_query);
        DB::getInstance()->closeConnection();
        unset($this->_query);
    }

}

?>
